package fuckTest.testList;

import acm.Sort.User;

import java.util.ArrayList;
import java.util.List;

public class Demo2 {

    public static void main(String[] args) {
        List<User> users = new ArrayList<>();
        User user = new User();
        user.setId(1);
        user.setMoney(10000);
        user.setName("liyan");
        users.add(user);
        user.setAge(22);
        users.add(user);

        System.out.println(users.size());
        for (User user0 : users)
            System.out.println(user0.getName());
    }

}
